Optimal. Leaf size=60 \[ -\frac{\cos (e+f x)}{f (a-b)}-\frac{\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{b} \sec (e+f x)}{\sqrt{a-b}}\right )}{f (a-b)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0550307, antiderivative size = 60, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {3664, 325, 205} \[ -\frac{\cos (e+f x)}{f (a-b)}-\frac{\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{b} \sec (e+f x)}{\sqrt{a-b}}\right )}{f (a-b)^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3664
Rule 325
Rule 205
Rubi steps
\begin{align*} \int \frac{\sin (e+f x)}{a+b \tan ^2(e+f x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{x^2 \left (a-b+b x^2\right )} \, dx,x,\sec (e+f x)\right )}{f}\\ &=-\frac{\cos (e+f x)}{(a-b) f}-\frac{b \operatorname{Subst}\left (\int \frac{1}{a-b+b x^2} \, dx,x,\sec (e+f x)\right )}{(a-b) f}\\ &=-\frac{\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{b} \sec (e+f x)}{\sqrt{a-b}}\right )}{(a-b)^{3/2} f}-\frac{\cos (e+f x)}{(a-b) f}\\ \end{align*}
Mathematica [B] time = 0.260307, size = 121, normalized size = 2.02 \[ \frac{(b-a) \cos (e+f x)+\sqrt{b} \sqrt{a-b} \tan ^{-1}\left (\frac{\sqrt{a-b}-\sqrt{a} \tan \left (\frac{1}{2} (e+f x)\right )}{\sqrt{b}}\right )+\sqrt{b} \sqrt{a-b} \tan ^{-1}\left (\frac{\sqrt{a-b}+\sqrt{a} \tan \left (\frac{1}{2} (e+f x)\right )}{\sqrt{b}}\right )}{f (a-b)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.046, size = 63, normalized size = 1.1 \begin{align*} -{\frac{\cos \left ( fx+e \right ) }{ \left ( a-b \right ) f}}+{\frac{b}{ \left ( a-b \right ) f}\arctan \left ({ \left ( a-b \right ) \cos \left ( fx+e \right ){\frac{1}{\sqrt{b \left ( a-b \right ) }}}} \right ){\frac{1}{\sqrt{b \left ( a-b \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.78239, size = 350, normalized size = 5.83 \begin{align*} \left [-\frac{\sqrt{-\frac{b}{a - b}} \log \left (-\frac{{\left (a - b\right )} \cos \left (f x + e\right )^{2} - 2 \,{\left (a - b\right )} \sqrt{-\frac{b}{a - b}} \cos \left (f x + e\right ) - b}{{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}\right ) + 2 \, \cos \left (f x + e\right )}{2 \,{\left (a - b\right )} f}, -\frac{\sqrt{\frac{b}{a - b}} \arctan \left (-\frac{{\left (a - b\right )} \sqrt{\frac{b}{a - b}} \cos \left (f x + e\right )}{b}\right ) + \cos \left (f x + e\right )}{{\left (a - b\right )} f}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sin{\left (e + f x \right )}}{a + b \tan ^{2}{\left (e + f x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.40835, size = 109, normalized size = 1.82 \begin{align*} -\frac{f \cos \left (f x + e\right )}{a f^{2} - b f^{2}} + \frac{b \arctan \left (\frac{a \cos \left (f x + e\right ) - b \cos \left (f x + e\right )}{\sqrt{a b - b^{2}}}\right )}{\sqrt{a b - b^{2}}{\left (a - b\right )} f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]